<?php /* Smarty version 2.6.14, created on 2015-01-22 16:23:21
         compiled from servers_manager.index.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'html_options', 'servers_manager.index.html', 8, false),array('modifier', 'date_format', 'servers_manager.index.html', 44, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "header.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<!--script language="javascript" src="<?php echo @BASEURI; ?>
public/js/jquery.tablesorter.js"></script-->
<form action="/servers_manager/index" method="POST">
<table border="0" class="search" cellspacing="0">
   	<tr>
    	<td class="searchlogo"></td>
        <td>
            <?php echo $this->_tpl_vars['systemLang']['platform']; ?>
:<select name="s[plat_id]"><option value=""><?php echo $this->_tpl_vars['systemLang']['select']; ?>
</option><option value="0" <?php if ($this->_tpl_vars['search']['plat_id'] == '0'): ?> selected <?php endif; ?>><?php echo $this->_tpl_vars['systemLang']['mobile']; ?>
</option><?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['platform'],'selected' => $this->_tpl_vars['search']['plat_id']), $this);?>
</select>
            <?php echo $this->_tpl_vars['systemLang']['games']; ?>
:<select name="s[game_id]"><option value=""><?php echo $this->_tpl_vars['systemLang']['select']; ?>
</option><?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['mygames'],'selected' => $this->_tpl_vars['search']['game_id']), $this);?>
</select>
            <?php echo $this->_tpl_vars['systemLang']['deviceType']; ?>
:<select name="s[device]"><option value=""><?php echo $this->_tpl_vars['systemLang']['select']; ?>
</option><?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['devices'],'selected' => $this->_tpl_vars['search']['device']), $this);?>
</select>
            <?php echo $this->_tpl_vars['systemLang']['specialServices']; ?>
:<select name="s[specialized]"><option value=""><?php echo $this->_tpl_vars['systemLang']['select']; ?>
</option><?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['specialized'],'selected' => $this->_tpl_vars['search']['specialized']), $this);?>
</select>
            <input type="submit" class="button" value="<?php echo $this->_tpl_vars['systemLang']['search']; ?>
">
        </td>
    </tr>
</table>
<table width="100%" border="0" class="adminlist" cellspacing="0">

  <thead>
  <tr>
 	 <th><input id="toggle" type="checkbox" value=""/></th>
    <th><?php echo $this->_tpl_vars['systemLang']['serverNo']; ?>
</th>
    <th><?php echo $this->_tpl_vars['systemLang']['serverName']; ?>
</th>
    <th><?php echo $this->_tpl_vars['systemLang']['platform']; ?>
</th>
    <th><?php echo $this->_tpl_vars['systemLang']['games']; ?>
</th>
    <th><?php echo $this->_tpl_vars['systemLang']['isJailbreak']; ?>
</th>
    <th><?php echo $this->_tpl_vars['systemLang']['status']; ?>
</th>
    <th><?php echo $this->_tpl_vars['systemLang']['addtime']; ?>
</th>
    <th><?php echo $this->_tpl_vars['systemLang']['serverOpentime']; ?>
</th>
    <th><?php echo $this->_tpl_vars['systemLang']['deviceType']; ?>
</th>
    <th><?php echo $this->_tpl_vars['systemLang']['specialServices']; ?>
</th>
    <th><?php echo $this->_tpl_vars['systemLang']['operate']; ?>
</th>
  </tr>
  </thead>
  <tbody>
  <?php $_from = $this->_tpl_vars['servers']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['a'] => $this->_tpl_vars['server']):
?>
  <tr class="row0">
   <td><input name="select_id[]" type="checkbox"  class="checkbox" id="cb<?php echo $this->_tpl_vars['a']; ?>
" value="<?php echo $this->_tpl_vars['server']['server_id']; ?>
" /></td>
    <td><?php echo $this->_tpl_vars['server']['server_no']; ?>
</td>
    <td><?php echo $this->_tpl_vars['server']['server_name']; ?>
</td>
    <td><?php if ($this->_tpl_vars['server']['platform'] == 0):  echo $this->_tpl_vars['systemLang']['mobile'];  else:  echo $this->_tpl_vars['platform'][$this->_tpl_vars['server']['platform']];  endif; ?></td>
    <td><?php echo $this->_tpl_vars['mygames'][$this->_tpl_vars['server']['game_id']]; ?>
</td>
    <td><?php if ($this->_tpl_vars['server']['jailbreak'] == 1): ?> <?php echo $this->_tpl_vars['systemLang']['yes']; ?>
 <?php else: ?> <?php echo $this->_tpl_vars['systemLang']['no']; ?>
 <?php endif; ?></td>
    <td><?php echo $this->_tpl_vars['server_status'][$this->_tpl_vars['server']['server_status']]; ?>
</td>
    <td><?php echo ((is_array($_tmp=$this->_tpl_vars['server']['server_add_time'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d %H:%M:%S") : smarty_modifier_date_format($_tmp, "%Y-%m-%d %H:%M:%S")); ?>
</td>
    <td><?php echo ((is_array($_tmp=$this->_tpl_vars['server']['server_open_time'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d %H:%M:%S") : smarty_modifier_date_format($_tmp, "%Y-%m-%d %H:%M:%S")); ?>
</td>
    <td><?php echo $this->_tpl_vars['server']['device']; ?>
&nbsp;</td>
    <td><?php echo $this->_tpl_vars['server']['specialized']; ?>
&nbsp;</td>
   	<td>
	<a href="<?php echo @BASEURI; ?>
servers_manager/edit/<?php echo $this->_tpl_vars['server']['server_id']; ?>
"><?php echo $this->_tpl_vars['systemLang']['edit']; ?>
</a>&nbsp;<a href="<?php echo @BASEURI; ?>
servers_manager/delete/<?php echo $this->_tpl_vars['server']['server_id']; ?>
" onclick="return confirm('<?php echo $this->_tpl_vars['systemLang']['confirmDel']; ?>
')"><?php echo $this->_tpl_vars['systemLang']['del']; ?>
</a></td>
  </tr>
  <?php endforeach; endif; unset($_from); ?>
  </tbody>
  <tfoot>
      <tr>
      	<td colspan="10"><?php echo $this->_tpl_vars['page']; ?>
</td>
      </tr>
      <tr>
        <td colspan="10">
             <input type="button"  class="button" value="<?php echo $this->_tpl_vars['systemLang']['add']; ?>
" onclick="button_location('<?php echo @BASEURI; ?>
servers_manager/add')" accesskey="N" />
            <input type="button"  class="button" value="<?php echo $this->_tpl_vars['systemLang']['del']; ?>
" onclick="select_control('<?php echo @BASEURI; ?>
servers_manager/delete','<?php echo $this->_tpl_vars['systemLang']['confirmDel']; ?>
')"/>

        </td>
      </tr>
  </tfoot>
</table>
</form>